package com.smag.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.smag.common.core.domain.AjaxResult;
import com.smag.system.domain.FarmProductPicture;
import com.smag.system.service.FarmProductPictureService;
import com.smag.system.mapper.FarmProductPictureMapper;
import org.springframework.stereotype.Service;

/**
* @author hzqhzq
* @description 针对表【farm_product_picture】的数据库操作Service实现
* @createDate 2023-04-25 20:02:40
*/
@Service
public class FarmProductPictureServiceImpl extends ServiceImpl<FarmProductPictureMapper, FarmProductPicture>
    implements FarmProductPictureService{

    @Override
    public AjaxResult getProductPicture(Long productId) {
        LambdaQueryWrapper<FarmProductPicture> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(FarmProductPicture::getProductId,productId);
        return AjaxResult.success(list(queryWrapper));
    }
}




